/*
 * Created on 20/10/2012 - 12:40 PM
 */
package sembr.vtk.reader;

import vtk.vtkDataSet;
import vtk.vtkPolyData;
import vtk.vtkXMLGenericDataObjectReader;

/**
 *
 * @author adriano
 */
public class VtkXmlDataSetReader extends ReaderBase
{
    private vtkXMLGenericDataObjectReader xmlGenericDataReader;
    
    public VtkXmlDataSetReader(String filePath)
    {
        xmlGenericDataReader = new vtkXMLGenericDataObjectReader();
        xmlGenericDataReader.SetFileName(filePath + "sembr.dxf.presentation/simulation/ey.5000.vti");
        xmlGenericDataReader.Update();
    }
    
    public vtkDataSet getDataSet()
    {
        return xmlGenericDataReader.GetOutputAsDataSet();
    }

    @Override
    public vtkPolyData getPolyData() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
